
package cn.juforg.guns;

import android.content.Context;
import android.media.AudioManager;
import android.media.SoundPool;
import cn.juforg.phoneshotgun.MotionDetecter;
import cn.juforg.phoneshotgun.R;


public class M3 extends Gun{


	public M3(Context context) {
		soundPool = new SoundPool(1, AudioManager.STREAM_RING, 100);
		loadSound(context);
		initMotionMap();
	}
	
	public void loadSound(Context context){
		motion2sound.put(M3_Motion.MOTION_M3_PUMP, soundPool.load(context, R.raw.m3_pump, 1));
	}
	public void initMotionMap(){
//		motionMap.put(new Integer[]{MotionDetecter.UP_GESTURE,MotionDetecter.DOWN_GESTURE}, M3_Motion.MOTION_M3_PUMP);
		motionMap.put(String.valueOf(MotionDetecter.UP_GESTURE), M3_Motion.MOTION_M3_PUMP);
	}
	static class M3_Motion extends GunMotion{
		static final Integer MOTION_M3_PUMP = 1;
	}
}
